convert python dictionary to pandas dataframe